package com.jiechuang.user.dto;

import com.jiechuang.common.web.Page;
import lombok.Data;
import org.springframework.util.StringUtils;

@Data
public class PermissionQueryInfo extends Page {
    private String keyword;
    //1代表不需要树状排列，2代表树状排列
    private int type=1;
    //传3则查询一级二级三级权限，传2则查询一级二级
    private int maxPermissionLevel=3;
    public String getKeyword() {
        return StringUtils.hasLength(keyword)?keyword:null;
    }
}
